-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Status from CoreData #1167
Conversation
Good that you noticed this! The crash happens because no user entity exists for this posts user anymore. I just realized that there are still a couple of places like this where the MastodonUser needs to be replaced, however I'm not sure if this conflicts with your user refactoring. |
I'm pretty sure it will, but so be it then. Also my domain-block-PR will create conflicts, but that's okay. I think it doesn't make sense to wait with those fixes until I'm finished with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your changes since the last review look good, I like the UserIdentifier
-approach. Can you say something about the other comments? Feel free to quietly resolve them :)
Mastodon/Protocol/Provider/DataSourceProvider+UITableViewDelegate.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gets better and better :) Great work!
I added some remarks and will do a test on device in the next few hours.
Mastodon/Scene/HashtagTimeline/HashtagTimelineViewModel+State.swift
Outdated
Show resolved
Hide resolved
Mastodon/Scene/HashtagTimeline/HashtagTimelineViewModel+State.swift
Outdated
Show resolved
Hide resolved
Mastodon/Scene/HomeTimeline/HomeTimelineViewController+DataSourceProvider.swift
Outdated
Show resolved
Hide resolved
MastodonSDK/Sources/MastodonUI/View/Content/StatusView+Configuration.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, finally! 🚀 👍 🎊 🥳
Thank you for that impressive amount of work.
Rationale
We've made the decision to radically decrease usage of Core Data as with the current implementation we're storing an excessive amount of data which leads to degraded performance and also invalid data over time, e.g. when account relations are changing but are not reflected in the App.
This PR removes usage of the
CoreDataStack.Status
entity and replaces it byMastodonStatus
.